package com.lethelh.factory;

/**
 * 橘子工厂类
 * @author jasonper
 */
public class OrangeFactory {
    public static Orange getOrange(String area){
        if (area.equals("北方")){
            return new NorthOrange();
        }else if (area.equals("南方")){
            return new SouthOrange();
        }else {
            return null;
        }
    }
}
